package com.epam.edu.entity;

public class Marks {
    private int id;
    private int historyKZMark;
    private int languageMark;
    private int mathematicsMark;
    private Subject subject;
    private int mark;
    private int amount;

    public Marks(int id, int historyKZMark, int languageMark, int mathematicsMark, Subject subject, int mark) {
        this.id = id;
        this.historyKZMark = historyKZMark;
        this.languageMark = languageMark;
        this.mathematicsMark = mathematicsMark;
        this.subject = subject;
        this.mark = mark;
        this.amount = historyKZMark + languageMark + mathematicsMark + mark;
    }

    public Marks(int historyKZMark, int languageMark, int mathematicsMark, Subject subject, int mark) {
        this.historyKZMark = historyKZMark;
        this.languageMark = languageMark;
        this.mathematicsMark = mathematicsMark;
        this.subject = subject;
        this.mark = mark;
        this.amount = historyKZMark + languageMark + mathematicsMark + mark;
    }

    public Marks() {
        this.historyKZMark = 0;
        this.languageMark = 0;
        this.mathematicsMark = 0;
        this.subject = null;
        this.mark = 0;
    }

    public int getAmount() {
        return amount;
    }

    public void setAmount(int amount) {
        this.amount = amount;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getHistoryKZMark() {
        return historyKZMark;
    }

    public void setHistoryKZMark(int historyKZMark) {
        this.historyKZMark = historyKZMark;
    }

    public int getLanguageMark() {
        return languageMark;
    }

    public void setLanguageMark(int languageMark) {
        this.languageMark = languageMark;
    }

    public int getMathematicsMark() {
        return mathematicsMark;
    }

    public void setMathematicsMark(int mathematicsMark) {
        this.mathematicsMark = mathematicsMark;
    }

    public Subject getSubject() {
        return subject;
    }

    public void setSubject(Subject subject) {
        this.subject = subject;
    }

    public int getMark() {
        return mark;
    }

    public void setMark(int mark) {
        this.mark = mark;
    }
}
